package com.itheima.reggie.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //根据name分页查询
    Page findByPage(Integer pageNum, Integer pageSize, String name);

    //新增菜品
    void save(Dish dish);

    //根据id查询
    Dish findById(Long id);

    //修改
    void update(Dish dish);

    //删除
    void deleteByIds(List<Long> ids);



    //查询指定分类下菜品
    List<Dish> findList(Long categoryId, String name);

    //批量起售/停售
    void updateStatus(List<Long> ids, Integer status);
}
